<?php

class Show extends TPage
{
	public $element_manager;
	public $element;
	
	public function onLoad($param)
	{
		parent::onLoad($param);
		$this->element_manager = $this->Application->Modules['conference_elements'];
		
		$this->element = $this->element_manager->getConferenceElementById($this->Request['id']);
		if(!($this->element instanceof ConferenceElementRecord))
			$this->Response->redirect($this->Service->constructUrl('organizer.ConferencePlan'));
			
		$this->Response->redirect($this->Service->constructUrl(
										'conference_elements.Show',
										array('id' => $this->element->getId())));
	}
	
}

?>